package com.hdax.dm.mapper.order;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hdax.dm.entity.order.Order;
import com.hdax.dm.entity.order.OrderLinkUser;
import com.hdax.dm.entity.user.User;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

public interface OrderMapper extends BaseMapper<Order> {

    //添加订单
    boolean addOrder(@Param("order") Order order);

    //添加订单详情
    boolean addOrderLink(@Param("orderLinkUser") OrderLinkUser orderLinkUser);

    //修改超时未支付的订单
    Integer updateOrderType(@Param("orderNo") String orderNo,@Param("type") Integer type);

    //我的大觅订单查询
    List<Order> queryorderlist(@Param("keyword") String keyword, @Param("orderTime") Object orderTime, @Param("orderType") Object orderType, @Param("userId") Long userId);

    //删除常用联系人
    boolean deleteticketbuyer(@Param("linkId") Long linkId);

    //查询用户信息
    User querypersoninfo(@Param("userId") Long userId);

    //修改个人资料
    boolean modifypersoninfo(@Param("user") User user);

    //修改个人资料
    boolean modifypersoninfo1(@Param("id") Long id,@Param("imgUrl") String imgUrl);
}
